package com.qf.service.Impl;

import com.github.pagehelper.PageHelper;
import com.qf.dao.OrderListDao;
import com.qf.pojo.OrderList;
import com.qf.service.OrderListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrderListServiceImpl implements OrderListService {
    @Autowired
    private OrderListDao orderListDao;
    @Override
    public List<OrderList> findAllOrder(Integer page, Integer limit, Integer id, String tel) {
        PageHelper.startPage(page,limit);
        return orderListDao.findAllOrder(id,tel);
    }

    @Override
    public List<OrderList> findAAOrderNoPage(Integer id, String tel) {
        return orderListDao.findAllOrder(id, tel);
    }
    @Override
    public void deleteOrder(Integer id) {
       orderListDao.deleteOrder(id);
    }
}
